package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.KnowledgeFood;

import java.util.List;
import java.util.Map;

public interface KnowledgeFoodMapper {
    Page<KnowledgeFood> selectByCondition(String queryString);

    void add(KnowledgeFood knowledgeFood);

    void edit(KnowledgeFood knowledgeFood);

    void deleteById(Integer id);

    List<KnowledgeFood> findAll();

    void addAssociation(Map map);

    List<Integer> findIdsByInterId(int interId);

    KnowledgeFood findById(Integer foodId);

}
